package top.layne.cloud.tsf.api.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
* Created by Mybatis Generator on 2020/07/15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BmsCoupon implements Serializable {
//    @ApiModelProperty(value = "主键")
    private Long id;

//    @ApiModelProperty(value = "库存编码")
    private String stockCode;

//    @ApiModelProperty(value = "优惠券码串")
    private String couponCode;

//    @ApiModelProperty(value = "批次主键")
    private Long batchId;

//    @ApiModelProperty(value = "出售状态：0：未售，1：已售")
    private Integer saleState;

//    @ApiModelProperty(value = "提交状态：0：未提交，1：待提交，2：已提交")
    private Integer uploadState;

//    @ApiModelProperty(value = "提交时间")
    private Date uploadTime;

//    @ApiModelProperty(value = "使用时间")
    private String useTime;

//    @ApiModelProperty(value = "0未使用，1已使用，2已退货")
    private Integer couponStatus;

//    @ApiModelProperty(value = "商品主键")
    private Long goodsId;

//    @ApiModelProperty(value = "是否删除，0：否，1：是")
    private Integer isDelete;

//    @ApiModelProperty(value = "创建人主键")
    private Long createBy;

//    @ApiModelProperty(value = "创建人名称")
    private String createName;

//    @ApiModelProperty(value = "创建时间")
    private Date createTime;

//    @ApiModelProperty(value = "修改人主键")
    private Long updateBy;

//    @ApiModelProperty(value = "修改人名称")
    private String updateName;

//    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stockCode=").append(stockCode);
        sb.append(", couponCode=").append(couponCode);
        sb.append(", batchId=").append(batchId);
        sb.append(", saleState=").append(saleState);
        sb.append(", uploadState=").append(uploadState);
        sb.append(", uploadTime=").append(uploadTime);
        sb.append(", useTime=").append(useTime);
        sb.append(", couponStatus=").append(couponStatus);
        sb.append(", goodsId=").append(goodsId);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createBy=").append(createBy);
        sb.append(", createName=").append(createName);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateName=").append(updateName);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}